﻿{include file="public/header" /}
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
	<span class="c-gray en">&gt;</span>
	系统管理
	<span class="c-gray en">&gt;</span>
	系统日志
	<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>
<div class="page-container">
	<form action="" method="get">
		<div class="text-c">
			<!--日期范围：-->
			<!--<input type="text" onfocus="WdatePicker({lang:'zh-tw'})" value="{:input('get.start')}" name="start" id="datemin" class="input-text Wdate" style="width:120px;"> - -->
			<!-- - -->
			<!--<input type="text" onfocus="WdatePicker({lang:'zh-tw'})" value="{:input('get.end')}" name="end" id="datemax" class="input-text Wdate" style="width:120px;">-->
			<input type="text" class="input-text" style="width:250px" placeholder="输入管理员名" id="word" name="word" value="{:input('word')}">
			<button type="submit" class="btn btn-success radius" id="" name=""><i class="Hui-iconfont">&#xe665;</i> 搜管理员名</button>
		</div>
	</form>
	<div class="cl pd-5 bg-1 bk-gray mt-20">
		<span class="l">
		<a href="javascript:;" onclick="datadel('{:url('systemLogDel')}')" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a>
		</span>
		<span class="r">共有数据：<strong>{$list->total()}</strong> 条</span>
	</div>
	<table class="table table-border table-bordered table-bg table-hover table-sort">
		<thead>
			<tr class="text-c">
				<th width="25"><input type="checkbox" name="" value=""></th>
				<th width="80">ID</th>
				<th width="17%">管理员名</th>
				<th width="100">内容</th>
				<th width="120">客户端IP</th>
				<th width="120">时间</th>
				<th width="70">操作</th>
			</tr>
		</thead>
		<tbody>
			{foreach $list as $v}
			<tr class="text-c">
				<td><input type="checkbox" value="{$v.id}" name="del[]"></td>
				<td>-</td>
				<td>{$v.username}</td>
				<td>{$v.info}</td>
				<td>{$v.login_ip}</td>
				<td>{$v.created}<br>{$v.updated}</td>
				<td>
					<a title="删除" href="javascript:;" onclick="data_del(this,'{:url('systemLogDel')}','{$v.id}')" class="ml-5" style="text-decoration:none"><i class="Hui-iconfont">&#xe6e2;</i></a></td>
			</tr>
			{/foreach}
		</tbody>
	</table>
	<div class="page">
		{$list->render()|raw}
	</div>
</div>

<script type="text/javascript">
$('.table-sort').dataTable({
	"lengthMenu":false,//显示数量选择 
	"bFilter": false,//过滤功能
	"bPaginate": false,//翻页信息
	"bInfo": false,//数量信息
	"aaSorting": [[ 1, "desc" ]],//默认第几个排序
	"bStateSave": true,//状态保存
	"aoColumnDefs": [
	  //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
	  {"orderable":false,"aTargets":[0]}// 制定列不参与排序
	]
});

</script>
{include file="public/footer" /}